added dying particle FX
moved some stuff around
cleaned up code