Refactor dungeon map generation to be much more efficient and to evade stange phaser error.