Added fix to #27 and prevent other similar issues

Also repaired infinite loop condition. Villagers will not attempt to
speak when told to do a chore.
Update .gitignore