Level map work in dl: dungeon margin, room and topology detection