Basic AI for a chess game.