Added comments to RectCollision logic