The Trumbull High girls basketball team defeated defending FCIAC champion Danbury High, 42-36, on Wednesday night.

The Trumbull High girls basketball team, the 2011 FCIAC  champions and last year’s runners-up, are suddenly back in first place thanks to a 42-36 victory over the 2012 champion Danbury Hatters on Wednesday night.

The win put coach Steve Tobitsch’s Eagles in a three-way tie with the Westhill Vikings and Danbury at 15-2 in league play, but Trumbull gets the nod for the top spot thanks to their head-to-head wins over the other two teams.

Erin Moore scored 14 points, Amanda Pfohl 11 and Alexa Pfohl eight to lead Trumbull, which led 19-15 at the half and 28-27 after three quarters.

Overall, the eight playoff teams have been decided, but the final games of the regular season is still providing a wild finish to the season.

The playoff picture is complicated, as three of Thursday’s contests involve head-to-head match-ups of tournament teams.

Westhill plays at Trinity Catholic at 5:30 p.m., with Wilton hosting Danbury and Stamford hosting Darien at 7 p.m.

The FCIAC quarterfinals will be held Saturday, Feb. 16, at the home courts of the top four seeds.

Westhill, which ended Danbury’s 37-game regular season winning streak last week, is in second place, while Danbury dropped from first to third.

Trumbull would clinch the No. 1 seed with a victory over Staples on Thursday, combined with a Danbury win over Wilton.

Wilton will be looking to knock off Danbury and, at 14-2 with two games remaining, could move up into the top three. The Warriors face Danbury on Thursday and would pass the Hatters in the standings with a victory.

With a loss, Wilton is still in line for a home game, as it would win a tiebreaker over fifth-place Stamford, which is one game back in fifth place at 14-3.

Darien, which is 13-4, is nipping at Stamford’s heels and will get a chance to move up a spot with its game against the Knights on Thursday.

A loss would make Darien vulnerable to falling to seventh or eighth place, as both Trinity and Ridgefield are one game back at 12-5 in the FCIAC.

Trinity will be facing city rival Westhill at home to close out the regular season on Thursday, while Ridgefield hosts Warde.

As for the CIAC postseason, 11 FCIAC teams have qualified for the tournaments, with three more — Staples, St. Joseph and New Canaan — needing wins on the final day of the season to earn a trip.

Staples hosts Trumbull, while New Canaan plays at Ludlowe on Thursday. St. Joe’s hosts McMahon on Friday.