scrapping last idea, moving to a pruning algorithm.