fixed exiting on menu and game