Calculate the next generation of Conway’s Game of Life, given any starting position.