code tweaked to handle destination location anywhere in the plane

code has been tweaked to handle the situation in which location of
destination can be anywhere, which was not possible earlier (robot only
caught the destination if it was in 1st or 2nd quadrant of the plane).