Maze Tutorial - if blocks

Algorithm:
Use a Repeat do block and ask the robot to make decisions: Move forwards unless you can turn left. If you can turn left, do so and then go forward again.

Task:
See if you can use this algorithm to get the robot to the green square in the maze below.
(You are not allowed to use more than 12 code blocks.)

When you have finished – return to the tutorial by closing this window or tab.