The game has not cheated in either instances, Daxiel.
The first video demonstrates a move called castling
, where a player may decide to send his king to the opposite side of rook as it approaches the immediate side of a king’s square. A player cannot castle when they are in check. Castling also may not occur if an opponent’s attack path intersects with the square the king must pass through, i.e., the square that is the final position of the rook.
Furthermore, the game has ended as expected in the second video, because you do not actually demonstrate a checkmate here like you say. If a side has no legal move, but is not in check, a stalemate
has occurred. Contrary to what you may think, by the rules of chess, this is strictly a draw and there is no winner. Hence, even when you are in the clear winning position you must still play your moves carefully to avoid stalemate.
Here’s what you should have done. Instead of moving your king, move the queen one position forward from F6 to F7. This will force the opponent’s king to the corner (H8). At this point, the queen should be moved to the far right, H7, causing a checkmate and ending the game.