Champaign, Ill. — Everything seemed to be going the Maryland men’s basketball team’s way Sunday night at State Farm Center.

Until it wasn’t.

And then, with less than a second left in overtime, it was again.

A free throw by sophomore guard Anthony Cowan Jr. with 0.6 of a second left gave the Terps a 92-91 victory over Illinois.

Cowan, who finished with a career-high 27 points, saved the Terps from losing for the fourth time in five games and starting the Big Ten 0-2 for the first time since Maryland joined the league four years ago.

It also prevented Maryland (7-3, 1-1) from suffering its worst collapse in Mark Turgeon’s seven years as the team’s coach.

Leading lllinois by as many as 21 points late in the first half, by 19 at halftime and by 22 early in the second half, the Terps imploded and seemed to be headed toward an embarrassing defeat.

Only some late mistakes by the young Illini prevented Maryland from disaster. After Illinois threw an inbounds pass off the court with 4.6 seconds left in regulation, the Terps’ Kevin Huerter took a corner 3-point attempt that hit off the back rim.

There, freshman center Bruno Fernando tipped the ball in, sending the game to overtime.

It didn’t appear, however, that the Terps would take advantage of their second life.

But after Cowan and llinois graduate transfer Mark Alstork dominated the early part of the extra session, trading baskets and free throws seemingly on each possession, a 3-pointer by Huerter gave the Terps a 91-89 lead.

Alstork tied the game with a drive with 14.6 seconds left. Cowan took the ball upcourt, picked his spot and drove as the clock ticked toward expiration. He went up from about 10 feet, and with Alstork close to blocking it, forced enough contact to draw the foul.

With the raucous crowd screaming its displeasure and the clock reading 0:00, officials went back and saw that Cowan had taken the shot with under a second left. He was awarded two shots, hitting the first and missing the second.

Illinois (6-3,0-2), which lost its Big Ten opener Friday night in overtime to Northwestern, didn’t get off a final shot as the Maryland bench and Turgeon celebrated the narrow — and fortunate — road victory.

Justin Jackson scored a season-high 20 points for the Terps, and Huerter added 17.

Maryland had a season-high 25 turnovers, including seven by Cowan, who also had six assists.

In a zone:Playing zone is something Turgeon had tried to stay away from for most of his coaching career. The Terps used it briefly in a couple of games, including on one possession against Syracuse, the king of the 2-3.

Maryland went to a zone with around 10 minutes left in the first half and stuck with it for the rest of the half. After watching an early 10-point lead cut to four before a 3-point shot by Cowan made it seven, the Terps fell back in a 2-3 zone for all but two possessions the rest of the half.

The result: Maryland held the Illini to just three baskets during that stretch, while scoring on 10 of 13 possessions to build its lead to as many as 21 points, 45-24 before Illinois scored the last basket of the half.

The zone, a 2-3, featured 6-foot-7 Huerter at the top of it, with 6-10 Fernando in the middle, with Jackson, Cowan and either freshman Darryl Morsell (Mount Saint Joseph) or redshirt junior Dion Wiley on the wing.

Not only did it seem to flummox the Illini, it seemed to energize the Maryland transition game. On one play, Jackson blocked a shot underneath, dribbled out of the pack well past midcourt and eventually fed Huerter for a layup.

Unfortunately, the Illini figured out Maryland’s zone when the Terps went back to it midway through the second half. Unlike the first half, when the Illini clanked a bunch of 3-pointers off the rim and lost the ball dribbling into double teams, the Illini patiently picked the Terps apart.

Fast start for Terps: After falling behind by as many as 14 points on four occasions in the first half against Purdue, Turgeon and Huerter talked about Maryland getting off to a better start, particularly on defense.

Though Maryland hit five of its first seven shots to take a 10-0 lead, it was the defense that got the Terps off quickly, forcing five early turnovers and forcing first-year Illinois coach Brad Underwood to sub out four of his starters.

The move worked, with the Illini cutting its deficit back to four.

One year anniversary for Underwood: After Illinois lost to Northwestern in overtime in Chicago in Friday’s Big Ten opener, Underwood mentioned how Sunday’s game marked the one-year anniversary — to the day — of Maryland’s 71-70 win over Underwood’s former team, Oklahoma State.

don.markus@baltsun.com

twitter.com/sportsprof56

MARYLAND—Bender 2-2 0-0 4, Jackson 8-13 3-3 20, Cekovsky 1-2 0-1 2, Huerter 6-11 3-4 17, Cowan 9-15 5-7 27, Fernando 4-6 2-2 10, Wiley 2-4 0-0 5, Morsell 3-6 1-2 7, Nickens 0-0 0-0 0. Totals 35-59 14-19 92.

ILLINOIS—Black 8-11 1-2 18, Finke 4-7 0-1 8, Lucas 1-2 1-2 3, Smith 0-3 0-0 0, Alstork 5-9 4-4 17, Eboigbodin 1-1 0-0 2, Nichols 5-10 0-0 11, Jordan 4-6 4-4 15, Williams 3-9 0-0 6, Frazier 5-12 1-2 11. Totals 36-70 11-15 91.

Halftime—Maryland 45-26. End of regulation—Tied 75. 3-point goals—Maryland 8-18 (Cowan 4-5, Huerter 2-6, Wiley 1-3, Jackson 1-4), Illinois 8-25 (Jordan 3-5, Alstork 3-5, Black 1-1, Nichols 1-1, Williams 0-2, Finke 0-3, Smith 0-3, Frazier 0-5). Fouled out—Alstork. Rebounds—Maryland 34 (Fernando 8), Illinois 24 (Nichols 6). Assists—Maryland 15 (Cowan 6), Illinois 13 (Frazier 7). Total fouls—Maryland 19, Illinois 19. A—12,735 (15,500).