added a writeoutmenu fuction in MainMenu
fixed the menuoptions in gameloop