Implement Minimax algorithm and iterative deepening.