private void updateNodeColours(){
        if(armyColours)
        {
            for(Node N : network)
            {
                if(N.id != clicked)
                {
                    D.getGraphPanel().setNodeColorNoRepaint(N.id, Color.getHSBColor(colourMap.get(((GossipicoFAB)N.getFAB(0)).beacon.A), 1f, 1f));
                }
                else
                {
                    D.getGraphPanel().setNodeColorNoRepaint(N.id, Color.MAGENTA);
                }
            }
            D.getGraphPanel().repaint();
        }
        else
        {
            float h=0;
            for(Node N : network)
            {
                if(N.id == clicked)
                {
                    h = 5f/6f;
                }
                else
                {
                    h = 0.33f*(float)((GossipicoFAB)N.getFAB(0)).count.SC/(float)network.size();
                }
                D.getGraphPanel().setNodeColorNoRepaint(N.id, Color.getHSBColor(h, 1, 1));
            }
        }
        D.getGraphPanel().repaint();
        updateNodeInfo();
    }