private int getClosestMatch(){
        int lowestMatchFactorIndex = 0;
        double lowestMatchFactor = 99999999;
        for (int i = 0; i < this.log.size(); i++){
            if (getMatchFactor(i) < lowestMatchFactor)
                lowestMatchFactorIndex = i;
        }
        return lowestMatchFactorIndex;
    }