BOZEMAN, Mont. -- DeNarius McGhee ran for two touchdowns and threw for a third on Saturday as Montana State overcame four turnovers and rode a missed extra point with seven seconds remaining to a 26-25 victory against New Hampshire in the second round of the FCS playoffs.

Montana State (10-2) seemed to have the game put away when Darius Jones intercepted a Mark Becker pass at the Bobcat three-yard line with 1:16 to play and the Bobcats leading 26-19. But a shanked punt gave the Wildcats (8-4) the ball back with 17 seconds remaining, and Becker hit Justin Mello on a 29-yard scoring pass with seven seconds to play. Mike MacArthur hit the right upright with his extra-point attempt, sending Montana State into the quarterfinals against Sam Houston State.

McGhee had scoring runs of two and 37 yards -- the latter giving Montana State a 23-19 lead in the third quarter -- as well as an 11-yard TD pass to Tray Robinson in the second quarter.