refactor cell state which holds two values dead or alive