fixed boxes_overlap()