Select the next word based on ending letter of previous word