The primary objective in chess is to checkmate your opponent's King. When a King cannot avoid capture then it is
checkmated and the game is immediately over. The game is drawn when the player to move has no legal move and
his king is not in check. The game is said to end in 'stalemate'.