Extract computation of dead/alive logic into a Rule class