fixed recursion… again

Was getting an overflow message with unbounded grid, switched grid to
be only big enough to fit the maze. Also fixed some errors where the
maze running bug tried to make the maze go off the grid.