deligateDragEvents function emits drag events for agents in draggingAgents array,
if mousemove. If dragEnd boolean checks if drag is still going or not, and if
dragEnd, agents in draggingAgents array emit a dragend event.
drag events modified for agents.