Added debug code.  In SmallGW, changed rewards so that terminal positions have step cost included.