Imported from https://github.com/Zeta36/chess-alpha-zero