Original problem: Walk all the way around the perimeter of a square island with no obstacles starting in the northwest corner facing east and returning to the original position facing east.

Take this jumbled together program to walk around the island perimeter and divide it into methods, use indentation and comment.

sub main()
Dim Sally as Jeroo = new Jeroo()
While(NOT Sally.isWater(AHEAD)) Sally.hop() End While
Sally.turn(RIGHT) While(NOT Sally.isWater(AHEAD))
Sally.hop() End While Sally.turn(RIGHT)
While(NOT Sally.isWater(AHEAD)) Sally.hop()
End While Sally.turn(RIGHT)
While(NOT Sally.isWater(AHEAD))
Sally.hop() End While Sally.turn(RIGHT)
end sub

This could be your final version: (with Jeroo methods and comments added of course!)