add parse_pgn function which can later be used for automated testing

fix checkmate detection

(0) -100 -30 -10 -2 +2 +10 tip

mercurial