some changes
defining gamestate scheme