Utmost need,Race Game

I m quite depress by the motion of the car, i want to create a chase game where yellow car is chased by green car, but sometimes it overlaps, how can I stop this overlapping & make a smooth racing game?Any suggestion will be appreciated
Plz check the attached code.