Pushing my change to the nextGeneration function.

Added the getNeighboursOfCell function, which is used in the new nextGeneration function.
Merge pull request #1 from robknows/patch-1

Pushing my change to the nextGeneration function.