refactored query of all agents out
can now respond to the MOVE action