added state to game type