Accurately modeled elastic collisions. Mass is proportional to r^3. Wall collisions aren't great, but collisions between balls are modeled accurately, including finding the precise time that they collided. They can, however, still clip through each other if they move past each other entirely within one frame.
The code style is a mess, though, I apologize for that.