Implpmented ride — sub-method for find-path