Added function runCollisionEvent, which updates particles after collision.