A Tic-Tac-Toe playing AI in Python