gamestate changes

changed to use an obj if in judging and an integer if in any other state