White is a healthy pawn up. The knight, however, is the trickiest piece in chess.
39... h7h6  40. g2f1  40... f6e5 A mistake on the last move of the time control. 41. d4h4 Ding certainly missed the strength of this move. Now White should be winning. 41... e7d5 