Clicking buttons don't work sometimes

Sometimes when I try to do puzzles, I click the buttons and they don’t work. Even when I close the app and go back in it still doesn’t work. The only way I can fix it is by revealing the solution. I don’t know whats happening, please help. Its only been with defined variables, thought.

Edit: I just have to spam click. Im using this on my chromebook btw.