add minimax search algorithm