You can't "trigger a touchend event" or cancel touches, which you would need to start touching another.
So you would be better off binding the touchmove event to the container, and manipulating the boxes based on their position/sizes and the touch position, like what part of Dan Lee's answer does.