Modified debugging functions in mapGenerate.lua