added pipes and animation with new dead function