Fixed crash when playing against AI
which was due to calling UI refresh from outside the UI thread.
Merge pull request #17 from cauchymop/ai_crash_fix

Fixed crash when playing against AI