private boolean shortCircuit()
    {
        boolean shortCirc = false;
        Circuit copy = new Circuit(this);
        for (int i = copy.getComponents().size() - 1; i >= 0; i--)
        {
            Component c = copy.getComponents().get(i);
            {
                if (c instanceof Resistor)
                {
                    copy.removeComponent(c);
                }
            }
        }        
        List<Terminal> nodes = new ArrayList<Terminal>();
        List<List<Component>> loops = new ArrayList<List<Component>>();
        int copyBranches = copy.findNodesAndLoops(nodes, loops);
        if (copyBranches != 0)   // At least one loop found
        {
            for (List<Component> loop : loops)
            {
                for (Component c : loop)
                {
                    if (c instanceof Battery)
                    {
                        shortCirc = true;
                    }
                }
            }
        }
        return shortCirc;
    }