determine whether a cell should live or die