STEP Four – A
car_width = 73
STEP Four – B
gameExit = False
AND Change the following line; FROM
while not crashed:
TO
while not gameExit:
STEP Four – C
#side boundaries
if x > display_width - car_width or x < 0:
gameExit = True
Now run your code
If you move the race car to either edge the game will stop