A simple implementation of minimax for Tic-Tac-Toe