Paint turnLeft Move turnRight move while(notPainted){ paint turnLeft Move turnRight if(notBlocked){ move } else{ turnLeft move turnRight Move } }