Fixed indexing of g in loop.

Indexing of g in loop was fixed.  Since i goes from 1 to N-1, which
goes from the first ACTUAL word in the sentence to the special ending
word (‘LASTWORD’, I think?), but the 0th index of g ranges from 0 to
N-2.