Click the color of the bar at the top. The color of the bar changes every 5 clicks. The difference between easy, medium, and hard is the speed. You might have to refresh the page every time you lose. (Double click the green flag just in case.)
I thank my cousin @Programming_Legend for giving me the idea and testing it.