A draw is the ending of a game in which neither player wins. A draw in chess occurs in a number of circumstances. The first is the forming of an agreement between players to end the game as a tie. This could happen due to the game not being worth playing, or lack of ability to play. Stalemate, the lack of legal moves while not in check, is the second. The third happens when neither side moves a pawn or captures a piece in fifty moves. This is ending the game due to the fifty move rule. Also, there is draw by three-fold repetition. In this ending, a position shows up for the third time. In order to be considered the same position, every piece must be in the same place and every move possible has to be the same. Lastly, if neither side has sufficient material to checkmate his/her opponent, the game ends as a draw.
Draws can happen strategically, to avoid losing, or accidentally. Accidental draws are normally caused by the person with the greater chance of winning. Many types of draws require a written record of the game.