Changes in function drive_on to improve turning. Added input distance, but not used yet.