Try to get your robot to follow the blue path. Also, see if you can programme your robot to return a long the path when it gets to the end.
Thanks to titanicman200 for coding support.