ST. MICHAEL, Minn. (AP) — A Minnesota high school football team scored three touchdowns in the final minute of a playoff game to rally for a stunning two-point win.

The rally began as Maple Grove trailed St. Michael-Albertville 27-10 with 59 seconds remaining in Thursday's Class 6A quarterfinal game.

Maple Grove recovered two onside kicks and scored three times, twice on passes and once on a run with 4 seconds left to win 29-27.

The Minneapolis Star Tribune reports that Maple Grove coach Matt Lombardi joked to his team afterward, "Just like we drew it up."