Collisions work and the center of the object is now saved to a variable that updates when the object's position changes.