Fixed bug when doing debug exit (press x) during enemy attack; Put together a genericized format for the maps, so it won't be all hardcoded in map_functions.js. About half way done so far, will wrap it up tomorrow.