# How is this game a draw? [duplicate]

I was watching some YouTube videos, and I stumbled upon this game:

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[WhiteELO "?"]
[BlackELO "?"]
[SetUp "1"]
[FEN "5r2/8/pRP5/P5pP/3pk1P1/3p4/3K4/8 w KQkq - 0 1"]

1. c7 Rf2+ 2. Ke1 d2+ 3. Kxf2 d1=Q 4. Re6+ Kd3 5. c8=Q Qd2+ 6. Kg1 Qc1+ 7. Qxc1


After 6. Kg1 Qc1+!! 7. Qxc1 the game is draw. But how? Black still has three legal moves: a7, d5, g6.

Can anyone explain me how this game is a draw (I checked with chess.com and lichess.org, and several others too)?

Here's the PGN:

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[WhiteELO "?"]
[BlackELO "?"]
[SetUp "1"]
[FEN "5r2/8/pRP5/P5pP/3pk1P1/3p4/3K4/8 w KQkq - 0 1"]

1. c7 Rf2+ 2. Ke1 d2+ 3. Kxf2 d1=Q 4. Re6+ Kd3 5. c8=Q Qd2+ 6. Kg1 Qc1+ 7. Qxc1
• Before you post a question please check that the question hasn't been asked before in one form or another. Here are just two previous occurrences of this type of question which have the exact same answers. - chess.stackexchange.com/questions/15761/… and chess.stackexchange.com/questions/19719/… Jun 19 at 15:45
• @BrianTowers I don't think not checking other questions was the problem here; OP (incorrectly) thought there were three legal moves and thus that stalemate did not apply.
– D M
Jun 21 at 3:23