Loop problem in method calling

otherwise, the car will complete driving