Using the go forward until wall algorithm. It will be unable to solve an arbitrary maze.