conway game of life code at various stages