when the player gets hit, dead animation plays properly