Learn chess
If the player to move has no legal move and the king is not in check, it is stalemate. The game then ends in a draw – an annoying mistake for the stronger side.