Pushing my change to the nextGeneration function.

Added the getNeighboursOfCell function, which is used in the new nextGeneration function.