[solved] traffic light code

 if (button == 1);

Have you ever seen a conditional written like this?
Lose the semicolon.