I am trying to implement a word search in a grid of letters and a list of words. The program should be able to find each word in the grid and display the start and end coordinates. The words can go in all 8 directions. I am able to get the correct start coordinates however the end coordinates does not match for some of the words.