Refactoring Cell class (GameOfLife)