fixed the GUI switching and the respawn non-respawning of player
the Pause button and the Dead menu are now hidden in the MainMenu
simplified a bit the mainloop.setState function