Correction UPM 

+ correct the problem with the function Unit.isTraining() (function is
slow)
+ method private boolean isInGroup(Unit u, ArrayList l)