Updating minimax algorithm