Updated the bouding box check in the collider class.