Refactored make move using Ai class (Minimax algorithm).