Connected the methods of the state stack with the GameState class