I am assuming you are white.
You missed mate with 39.Rxg2,<insert move here> 40.Rg<insert number here>
Good game though
thanks