Finish implementing AI and improve UI.
Correct pawn promotion logic.