Which code segment will guarantee that the robot makes it to the grey square without hitting a wall or a barrier (black square)?
1) moveForward();
2) rotateLeft();
3) rotateRight();
4) canMove('forward');