STATE COLLEGE, Pa. -- Saquon Barkley scored on a 25-yard run on Penn State's first offensive play of overtime and the Nittany Lions beat Minnesota 29-26 on Saturday night.

Barkley finished with 63 yards on 20 carries for Penn State (3-2, 1-1 Big Ten) and Trace McSorley completed 19 of 40 passes for 335 yards and a touchdown. McSorley added 73 rushing yards and another score for the Nittany Lions, who battled back from a 13-3 halftime deficit to salvage momentum in a season already soured by injuries.

"I think it was definitely something our players needed," Penn State coach James Franklin said. "Everyone needed it, there's no doubt about it."

Mitch Leidner completed 24 of 40 passes for 241 yards with a touchdown, and Rodney Smith and Shannon Brooks added 104 and 100 rushing yards, respectively, for Minnesota (3-1, 0-1 Big Ten). Brooks and Drew Wolitarsky scored touchdowns for the Gophers and Irvin Charles hauled in an 80-yard score for Penn State.

Emmit Carpenter kicked four field goals for Minnesota, including a go-ahead 37-yarder with 54 seconds to go. But Tyler Davis' third field goal, a 40-yarder with two seconds left, forced overtime. Carpenter's 46-yarder put Minnesota up after the first half of overtime before Barkley ended it on the next play.

Penn State's star running back was bottled up for much of the afternoon and was forced to the sideline when it appeared he was hurt in the first half. Barkley averaged just two yards per carry before his game-sealing run.

"I'm really proud of Saqoun because he's handled adversity and you never see bad body language from him," Franklin said. "Never."