Move the sliders and press space.
This isn't finished, and all programming done by me. I used basic maths such as the distance formula. In this project, every 10 frames, it cycles between 1/10 of them. In each cycle, each ball saves the closest balls to it for calculations each frame... hopefully making this 10 times more efficient.