https://python.plainenglish.io/building-a-game-playing-ai-with-reinforcement-learning-in-python-a6371e05e57