Vincent19:
I am very curious and dont understand for the part if(counter> RESPONSETIME)How is that ? the counter will increase in every loop, so in every loop it is getting closer to exceed RESPONSETIME isnt ?
Yes. It looks like the player has something slightly over 3 seconds (RESPONSETIME=3000) to push the buttons in proper sequence, or else he fail().