Minimax algorithm is done.