Implement GoL logic