Reworked the gamestate system and the render que due to performance worries.