Oke an summary of what I'm trying to do.
I'm trying to reset my Arduino whenever the pushbutton has been pressed 16 times. I need to use the StateChangeDetection example (which I'm using right now) to make the code work. There is something wrong with my code that makes sure that my Arduino will not reset automatically.