if (Compute.effectiveDistance(game, entity, target) > 1) continue;
    PhysicalOption getBestPhysical(Entity entity, IGame game) {        // Infantry can't conduct physical attacks.        if (entity instanceof Infantry) {            return null;        }        // if you're charging, it's already declared        if (entity.isCharging() || entity.isMakingDfa()) {            return null;        }        PhysicalOption best = null;        for (Enumeration e = game.getEntities(); e.hasMoreElements();) {            Entity target = (Entity) e.nextElement();            if (target.equals(entity))                continue;            if (!target.isEnemyOf(entity))                continue;            if (null == target.getPosition())                continue;            PhysicalOption one = getBestPhysicalAttack(entity, target, game);            if (one != null) {                if (best == null || one.expectedDmg > best.expectedDmg) {                    best = one;                }            }        }        if(best == null) best = new PhysicalOption(entity);           return best;    }