made gamestate controller into a singleton