Fixed a bug where the AI could refuse to move into a guaranteed loss situation.
Merge branch 'master' into gh-pages