Added debug collision code