Fixed Maze_solver for lateral row movement