float side = isPlayer1? 1.0f : -1.0f;
// initialize to strongest value, then anything will be weaker.
double weakestHealth = -side;
GoGroup weakestGroup = null;
for (Object egroup : enemyNbrGroups) {
GoGroup enemyGroup = (GoGroup)egroup;
double h = analyzerMap.getAnalyzer(enemyGroup).getAbsoluteHealth();
if ((side * h) > (side * weakestHealth)) {
weakestHealth = h;
weakestGroup = enemyGroup;
}