Added logic to 'retreat' back to previous waypoint if user stops drawing
or goes outside of the path. refactored to make programming for touches
easier later, before this code gets out of hand in InputController.