public void setColor()
    {
        int truthState = getTruthState();
        if(truthState==-1)
        {
            stateColor = Color.RED;
        }
        if(truthState==0)
        {
            stateColor = Color.YELLOW;
        }
        if(truthState==1)
        {
            stateColor = Color.GREEN;
        }
    }