Arduino Nano strange behavior

Sorry for the comments I will change them. But you can clearly see what I want to do with the code ..

I just did a proper button debounce and it does the same thing