code: public boolean pointInBounds(Point loc) {
          return loc.x >= 0 && loc.x < this.columns && loc.y >= 0 && loc.y < this.rows;
      }
docs: Check if the provided point is in the maze bounds or outside.
  @param loc point to be tested.
  @return true if the point is in the maze.