Calculate nextGenerationwith the method nextIteration