Upon powerup, led1 is on. Since ledstate1 is true i would assume that the code would run and start the timer to run out and turn off .
the flow is want is: Powerup -> led1 on for one second, led2 off -> until button is pressed, both leds are off -> when button is pressed, led2 on for one second and then off -> both leds off until button is pressed -> back to led1... and so on.
so like and empty state so everything can reset after the button press?