finds the list of possible next words