Simulates particle-particle interactions based on newton's law of gravitation