removing all threats and freeing the Be6.
The end of the game probably took place amidst time-trouble, and there followed instead 38...Be5+? 39.Kg2 (White wins with 39.Kh4!! Qe8 40.Bc6) 39...Bxd5+ 40.Rxd5 Qb7? (with mutually correct play, after 40...Qe6 41.Rxe5 Qxe5 42.Nxh6+ Kg7 43.Nf5+ Kh8 44.Qf2 Qd5+ 45.Kh2 Rf7 46.Qf4 Rh7+ 47.Kg3 Ne4+ 48.Kg2 Ng5+ 49.Kg3, a draw could result) 41.Ne3, and White won.
The end of the game probably took place amidst time-trouble, and there followed instead 38...Be5+? 39.Kg2 (White wins with 39.Kh4!! Qe8 40.Bc6) 39...Bxd5+ 40.Rxd5 Qb7? (with mutually correct play, after 40...Qe6 41.Rxe5 Qxe5 42.Nxh6+ Kg7 43.Nf5+ Kh8 44.Qf2 Qd5+ 45.Kh2 Rf7 46.Qf4 Rh7+ 47.Kg3 Ne4+ 48.Kg2 Ng5+ 49.Kg3, a draw could result) 41.Ne3, and White won.