THREEFOLD REPETITION

The game is drawn if the same position occurs three times with the same player to move, and with each player having the same set of legal moves each time.