Added game mode.  Inserted debug printing code to help understand.  Goofed around with some map stuff.