It should return '1' even if there is an obstacle. It is confusing... The mouse cannot pass the obstacle but the maze should still be rendered in the way that there is a path under the obstacle (which in our case, the cat). Please see an example here http://karel-test.appspot.com/static/maze/index.html?lang=en_us&level=4&skin=3&mode=2