Fixed interaction in case of multiple objects

Fixed in case of two objects intersecting each other, Will swap to the
other object now instead of keeping old object when going over to the
intersecting one.