Complete function to determine if cells live or die
Clean up code
Simulation runs, but encounters an error
Working code