Updated Robot script. Includes all robot movement and distance checking. RW