Added a dialog when trying to restart or quit the game.