added a function in particles that gets called when particles die (lifetime over, not kill)