First iteration of minimax algorithm (with randomization)