move collision detection into obs