A Tic-Tac-Toe engine based on the minimax algorithm