Completed looser algorithm for creating anagrams.