Turtle Maze Puzzle - Follow the wall

Help the Turtle Robot get to the green square.
Write a program to solve the maze in the workspace below.
(Note: you can use no more than 10 blocks.)