Fix broken logic in mg_word_clicked().  fixes #522
Merge pull request #545 from RichardHitt/issue522

Fix broken logic in mg_word_clicked().  fixes #522