changed isGoodBayesClique() to isGoodFactorClique() so  that this function can be used in general for assessing all cliques with factor values