Refactored LifeStateFactory to use enum CellState instead of boolean.