Updated dictionary to use array for speed improvements
Added word in word checking