When neither side has any pawns, the game must be completed within a certain number of moves or it is declared a draw. When a piece is captured the count restarts only if it is the last piece of a player in the game.
