NPC Spawning

Fixed the NPC spawning and room sorting, but it needs tuning.