I have written a erronous game of life.
the game of life is as follows:
neighboring cells are defined as:
* = cell
# = possible neighbor
every empty cell with three living neighbors will come to life next generation
any cell with two or three neighbors will live into the next generation, cells with less or more will die
births and deaths occur simultaneouslya
program must be run for 5 generations
i tested my program and some bacteria seem to work and others appear to be random, please help me get an idea of what im doing wrong.