Button state change help

ok now i got it, for some reason i didnt have a delay at the end of the code and my led was acting up, but with a delay(100) its turning on every two clicks.