implement GoL simulation