getting longest wordList based on location of letters