made getNextGenerationCellStates a method