Support for printing out entire map

Running testMap.py and quitting with the 'q' option will print out the
entire map to "mapOutput.txt". Quitting execution with Ctrl+C bypasses
this.