Some code snippets to help with the generation of dungeons.