Adjusted Collision to Account for Multiple Collisions

For every collision, a time (separate for x and y) is computed for when
exactly the collision occurred and then the object is placed according
to the min time.