Stop it game problem

Hi

we need to make a stop it game for school but i really don't know what the problem is in my code.
The goal of the game is to press a button when the right led is on. if you press when the wrong led is burning you lose.

somehow nothing happends when i press my button.

can someone help me or explain me what i'm doing wrong

stopItGame.ino (2.58 KB)

You will get more and faster help if you read and follow the guide!ines in the how to use this forum-please read stickies.

You button is defined as INPUT_PULLUP. That means, it will read HIGH when not pressed and LOW when it is pressed. You code seems to expect the opposite.