As long as 'word' & 'words' are not empty, this function should always return a valid member of 'words'.

shotgun_match(word, words)

Arguments

word

user word

words

list of all words