Many ways to do this:
- Move the main button outside when game over. Bring back when restart game.
- Use variable to limit the action of main button.
Ex: if gameState = 0, can press button main only. When game over, set gameState to -1
- On touched button Main, add sub condition that it is not.touching any button in game over screen.
- And more and more :D