Dungeon Master - Solution