Update particle.cpp