fixed a bug which caused NPCs to walk into unbuilt rooms