Once you enter your name, just press the left and right arrow keys to overtake each car. The score is calculated at each pass you make and stops the count when you crash.
Yes, I learnt how to make things glide watching you tube videos and how to set score variable. But the concept of this race was from my childhood and created the sprites and backgrounds from that memory.