A whole bunch of disorganized nonsense but a cool algorithm for accurately calculating collisions