added death logic for tree