Added a basic state machine system

renamed MainMenu in menustate and ScreenGameLoop in gamestate