added intersects method to the box