Added main menu and gameover menu, fix bugs