modifying the dungeon so the code is separated.
merging