This is homework exercise 4, problem 2 for the the SJSU deep learning course.
Note! This is essentially the code at:
https://towardsdatascience.com/getting-started-with-reinforcement-learning-and-open-ai-gym-c289aca874f
I worked through it line by line and did make some small changes, but it is fundamentally the same code. Also, the only way I found to get the car graphic to work was to do this in a Jupyter notebook no my home computer, I was not able to get the car graphic to work in a Colab notebook.