int count = 0;
    public boolean hasTacticalGenius(Player player) {        int count = 0;        for (Enumeration i = entities.elements(); i.hasMoreElements();) {            Entity entity = (Entity)i.nextElement();            if (entity.getCrew().getOptions().booleanOption("tactical_genius")                && entity.getOwner().equals(player) && !entity.isDestroyed()                && entity.isDeployed() && !entity.getCrew().isUnconscious()) {                return true;            }        }        return false;    }