The trick here is to realize that it is not sufficient to stalemate the AI, you must get the AI to stalemate you. One way is to get an overwhelming material advantage, and leave the AI with only a pawn and a king. You should also reduce your force, and sacrifice all the pieces just leaving a rook and a queen or better yet two queens. Now let the AI pawn get to the seventh rank, and position your king right in front of it. Use your two queens to push the opponent's king toward his pawn, and sacrifice your queens so that the AI captures on the field right behind the pawn. It's a stalemate, your king can't move.