filled out functions addParticle, render, and addParticle(Particle)