Fix bug where words with same letter appearing multiple times caused bad
shuffling