recently I found a file that runs a minimax algorithm on a tic-tac-toe game via Python. There was source code available on the site for me to look deeper into. However when