@Override
    public boolean shouldKeepAlive(int i, int j) {
        return (getCell(i, j).isAlive())
                        && (numberOfNeighborhoodAliveCells(i, j) == 2 || numberOfNeighborhoodAliveCells(i, j) == 3);
    }