Dallas quarterback Dak Prescott threw for 320 yards and two touchdowns to lead the Cowboys to a crucial 31-28 NFL victory over Kansas City on Thursday that further dimmed the Chiefs’ playoff hopes.

The Cowboys, who have now won three straight to revive their own postseason bid, withstood two fourth-down touchdown passes from Chiefs quarterback Patrick Mahomes.

Mahomes threw for four TDs without an interception but couldn’t get Kansas City into the win column.