Changed naming of gamestate function;