White missed mate in 2: 39. g4+ Kh4 40. Rxh6#
39. g4+ not possible due to black Re2
38. g4+ wasn't possible but ....
39. g4+ is legal because Black has just played 38...f2? (blocking the rook).
That is so wrong