BLACK to move: how to Queen & avoid stalemate?
a few hints: the pawn to be promoted is the g pawn. analyze the position without the h pawn with either side to move (the key element here is the opposition).

Give up the rear pawn to deflect his K from controlling the queening square. Opposition actually has almost nothing to do with this.