&& ccs.getIndex() == system && !ccs.isDestroyed()) {
&& ccs.getIndex() == system && !ccs.isDestroyed() && !ccs.isBreached()) {
    public boolean hasWorkingSystem(int system, int loc) {        for (int i = 0; i < getNumberOfCriticals(loc); i++) {            CriticalSlot ccs = getCritical(loc, i);            if (ccs != null && ccs.getType() == CriticalSlot.TYPE_SYSTEM            && ccs.getIndex() == system && !ccs.isDestroyed()) {                return true;            }        }        return false;    }