Added interception checking to rect class.