Code an AlphaZero Machine Learning Algorithm to Play Games