As the saying goes, every second counts.

Even more fortunately for the Wilton High girls soccer team, there was enough time for the goal to count.

A shot from senior co-captain Taylor Ingerman crossed the goal line just as time expired in the second overtime, giving the 15th-seeded Warriors a stirring 3-2 victory over second-seed Newington in a Class LL state tournament second-round game Wednesday in Newington.

Wilton had to temporarily suspend its celebration as the officials gathered to discuss whether Ingerman's shot had indeed crossed the goal line before time expired. But when the goal was allowed, the Warriors were able to bask in the victory and look forward.

Wilton will now face a familiar foe, conference rival New Canaan, in the Class LL quarterfinals on Friday at 2 p.m. in Wilton. New Canaan, the 23rd-seed, upended seventh-seed Middletown, 1-0, in another second-round game Wednesday.

Newington had a 1-0 lead before sophomore Andrea Benalcazar scored for Wilton to tie the game. Regulation ended with the two teams knotted at 1-1, forcing two 10-minute overtime periods before the game went to penalty kicks.

Newington scored in the first overtime to regain the lead at 2-1, but Benalcazar tallied her second goal of the match in the second overtime to re-tie the game. Ingerman then provided the game-winner when her long shot resulted in the last-second goal.

“There are a lot of happy faces for the ride home,” said Wilton head coach Freya Coombe after the game. “I’m so proud of the girls, and to win in this fashion is unbelievable."