FORT WORTH, Texas (AP) — Cole Talley kicked a 41-yard field goal as time ran out and Army rallied to beat Missouri 24-22 in the Armed Forces Bowl on Wednesday night.

After the Tigers took a 22-21 lead on a touchdown with 1:11 to play, third-string quarterback Jabari Laws led Army (9-4) downfield to the Missouri 24-yard line, setting up Talley’s game-winner.

Army backup quarterback Tyhier Tyler came on after starter Christian Anderson was injured early in the fourth quarter and threw a 14-yard touchdown pass to Brandon Walters to give the Black Knights their first lead, 21-16. Anderson and JaKobi Buchanan scored on TD runs of 22 and 10 yards, respectively, for Army.

Redshirt freshman quarterback Brady Cook threw a 6-yard touchdown pass to Keke Chism with 71 seconds left to put the Tigers (6-7) ahead, but their two-point conversion attempt failed. Cook also ran for a 30-yard score in his first collegiate start.

Missouri played without second-team All-America running back Tyler Badie, who was held out by coach Eliah Drinkwitz in advance of the NFL draft. Starting quarterback Connor Bazelak was sidelined because of a leg injury.

Cook completed 27 of 34 passes for 238 yards and ran for 53 more.

Buchanan led Army in rushing with 68 yards on 21 carries. Elijah Young was the Tigers’ top rusher with 75 yards on 13 carries.