Code changes in the Dungeon system

I had added changes to work with the GUI system.