Implemented a correct box-box intersection