created gamestate class