https://en.wikipedia.org/wiki/Fifty-move_rule
(I'm not the author of chessboardjs, just stumbled over it)