add multi-box collision detection