AI extensions, pop-up  message at end of game

Now properly implements AI extensions for when player moves out of check
and when an equal or better capture is made. Also now pops up message at
end of game instead of trying to write to window.