public ArrayList<Boolean> intToBooList(int num)
    {
        ArrayList<Boolean> result = new ArrayList(varCount);
        String binary = Integer.toBinaryString(num);
        while(binary.length()<varCount)
        {
            binary = "0".concat(binary); //add 0's to make size of list the amount of variables.
        }
        for(int i = 0;i<binary.length();i++)
        {
            if(binary.charAt(i) == '0')  //0 -> false
            {
                result.add(false);
            }
            else                        
            {
                result.add(true); //1 -> true
            }
        }
        return result;
    }