The game didn’t go quite as Tottenville first thought it would. The fourth-seeded Pirates found themselves deadlocked with No. 5 Cardozo in the second half, each time the Judges finding an answer for a Pirates goal.

“They were a lot more aggressive then I thought,” Tottenville forward Brittany Sheeran said. “They were a pretty good team.”

It was the senior, though, that finally put Cardozo away. She controlled a mis-hit clearing ball by a Cardozo defender and scored the winner in the 65th minute to the top right corner from 16 yards to give Tottenville a 3-2 win in the PSAL Class A quarterfinals Tuesday at Newtown HS in Queens.

“She is very reliable,” sweeper Kasey Murphy said of Sheeran, who scored twice.

Sheeran got Tottenville (12-1-1) on board quickly by scoring over a drawn out Amanda Coll, the Judges goalkeeper, just six minutes into the game. Creshana Jones took a pass from Ariel Levy and walked it into the goal after her first shot was deflected by a Tottenville defender for Cardozo (12-2-1).

Erin Connelly scored on a beautiful shot across the box to the lower far corner after dribbling to the near sideline to create a perfect angle. It gave the Pirates a 2-1 lead at the break.

Jones struck again in unlikely fashion to tie the score at 2-2 in the 49th minute. Katlyn Merino served a corner kick into the box. It hit off the hand of Tottenville goalkeeper Julia Simoniello by the near post and then off a Pirates defender and right to Jones, who calmly headed the ball in.

“It was very nervewracking because you think you are going to have a game and that one goal [comes] and the game can change in the split second,” Murphy said.

As her teammate spent the second half peppering the Cardozo net, Murphy spent most of her day short-circuiting the Judges attack. She ran down the speedy Jones and Levy numerous times, not allowing them to complete their trademark long runs.

“She is a tough cookie,” said Tottenville coach George Kaplan, who noted her prowess in the classroom. “She will be a doctor.”

Kaplan said his team is a bit nicked up heading into Friday’s semifinal with No. 1 Bronx Science 2:30 p.m. on Friday at Flushing Meadow Park. It’s the Pirates’ first trip since 2006, when it beat McKee/Staten Island Tech for the city title, completing a run of seven city titles in 10 years.

“We are pretty excited,” Murphy said. “We are ready to try and go all the way through.”