Rewrote the maze code to use an array and hashing to find each cell so
that searching for existing cells in the maze more efficient.