Particles Particle animation and elastic collision direction. VanillaJS Important Therom - One-dimensional Newtonian