Tic Tac Toe AI: Using minimax algorithm