adds dying animation