extended on dungeon generation

dungeon is created in a completely random manner.  Code is not created
at dungeon generation...need to figure out how to export and encapsulate
array information.
added functionality export the dungeon code on death
more tweaks