Arduino ethernet need help with game logic!
The line

if(millis() - lastTime &gt; 400)


is supposed to test that the button press does not come right after the
LED switches. This means the line

lastTime = millis();


should be right when you change the displayed LED.