Created the gamestate class