rewrite of game over menu and improved main menu logic