added gamestate class