Tic Tac Toe with AI implemented through the minimax function