The final play of the Indiana-Penn State game came down to an inch.

After tying the game in overtime with a touchdown pass, Hoosiers coach Tom Allen decided to go for two and avoid a second overtime.

Indiana quarterback Michael Penix rewarded that decision. Penix rolled to his left and dove for the pylon, and just barely made it. His effort — along with some luck and a gutsy call by Allen— gave the Hoosiers a 36-35 victory.

Here’s video:

After a length review, the call on the field remained a touchdown.

The Hoosiers were only in this situation because of an error by Penn State at the end of regulation. Leading 21-20 with less than two minutes remaining, running back Devyn Ford ran in a touchdown for the Nittany Lions rather than killing the clock. That gave Indiana a chance to tie it up with a touchdown and a 2-point conversion, which is exactly what happened.

Penn State had a 57-yard field goal attempt at the end of regulation, but it missed. The Nittany Lions also missed two other field goal attempts in this game.

This is Indiana’s second victory over Penn State in school history and its first since 2013.