Add getAgentWithID() to ExtendedNode class