adding box level collision detection