update nextMove, min_move