Move path drawing code from Main.js to Particle.js