Added code for generating the next generation and updating the field to
the next generation in-place