AI makes moves that you cannot. The AI considers a king with a queen next to it as a checkmate. The AI cannot cope when there are only 2 Kings left on the board. The AI can move its king onto your queen's but you cannot move your king onto any queen's because the game ends with a loss for you if you try.