The last move of Frank in the chess game is moving the black king to a square next to the white king, an illegal move in chess.
During the chess game in the finale, Frank (Danny DeVito) is playing the first move, however, as per the rules of chess, the player with the white pieces always plays first, and Frank is playing with the black pieces.