Tree filtering anagrams now calculating, just needs a flatten