add is_wall method to the Maze