The visitors started the scoring in the Saskatchewan Junior Hockey League contest when Mkyllan Couture scored 1:45 into the game.
A goal by Terrier Erik Boers at 9:31 tied the game at 1-1, a score that would hold through the remainder of the first period.
It was Rylan Lefebvre who again gave the visitors a one-goal lead with a goal at 7:08 of the middle stanza.
The Lefebvre goal started a five-minute barrage of scoring by the two teams.
JD Hall tied the contest 2-2 with a Terrier goal at the nine-minute mark.
Thirty-seven seconds later Maddux Nollski made it 3-2 for the Terriers.
But the Yorkton lead was short-lived as Christian Albertson scored a powerplay goal to tie the game at 3-3.
Hall would then score his second of the night, a short-handed effort at 18:37 to again give the Terriers a 4-3 lead.
For most of the third period the Terriers held onto their one goal lead.
But, Alex Johnson would send a puck across the line behind Terrier netminder Bradley Mistol at 17:56 to tie things 4-4, and eventually send the game to overtime.
It would take only 1:49 of three-on-three play for the winning goal to be scored, a marker by Hawk Brody Wilson to finalize a 5-4 win.
The Terriers hit their home ice again Friday with Estevan scheduled to visit.