I have written the agent actions.
There are two of them - attack or move. There is no "doNothing()" action
because it would be very useless chunk of code.

Each function takes 6 arguments - ID, start node, target node and unit
counts. I think it is sufficiently commented but if you have any
questions mail me or the group (group might be better as everyone will
have the answer). Facebook communication may not get you what you want
;)

In main there is visualization of how the code works. 
Only thing that worries me is fact that visualization does not display
unit counts - adding that would make debugging of agents (and code) MUCH
EASIER!