Fixed infinite dungeon generation bug.