1)Sure the robot would have repeat to cross some of the point,actually my program segments have the
variable of display the number of repeated steps at the earlier stage of coding .

2)No matter how the robot move ,to traverse from R to X it must cover the whole area of the maze before reach the end .Furthermore the robot crosses some point of the area is sure cannot be avoid after all.