Was the game glitchy before you uploaded it the first time? If it was, I don't know what the problem is.
But if it started glitching when you upload it, it's because the java player has many known bugs that make games run differently than when you run them offline. The only way around them is to say in the project notes that you need to download the project.
Offline