Made gamestate take resources for spawning things