Add minimax and update