TORONTO, Canada – A Muslim high school’s religious objection to girls competing against the boys soccer team was rejected by the region’s athletic association.

The ISNA (Islamic Society of North America) Islamic High School in Toronto raised issues last week with two girls playing on the opposing team’s boys soccer team, and offered to forfeit the game. But the other team opted instead to sit the girls out during the second half of the match, CTV News reports.

ISNA officials released a statement Friday that Muslim boys cannot play soccer with girls “due to the religious commitment of non-contact with members of the opposite gender who are not family members.”

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

But the Region of Peel Secondary School Athletic Association that oversees sports for area schools ruled that’s the school’s problem, and future conflicts will result in an automatic forfeit.

“After examining the matter, ROPSSAA ruled that all its member schools are expected to abide by regulations that say if a sport isn’t available for a girl on a female team, she is eligible to participate on a boys’ team after a successful tryout,” according to the news site.

“If a girl is good enough to play on the boys’ team she can play,” ROPSSAA chairman Paul Freier told CTV News.

ISNA high was playing Robert F. Hall Catholic School when its coaches raised objections to the girls playing about halfway through the game last Tuesday, the Toronto Star reports.

Robert F. Hall senior Carla Briscoe told the news site her team was up by two goals when ISNA raised objections to the female players, and said she was “in shock” when she was told to sit out the second half.

“We were only two goals ahead. I didn’t want to ruin the game for the rest of the guys. We just couldn’t let them forfeit the game because we needed the extra goals to advance,” she said.

MORE NEWS: Know These Before Moving From Cyprus To The UK

“ISNA was behind 3-1 at the time, and both teams — after their respective ties in first-round matches — needed as many goals as possible to advance into the semi-finals if the pool placements came down to goal differentials,” according to the Star.

ISNA’s statement, issued Friday, apologized for the “confusion and misunderstandings” over the episode.

“The opposing team chose to substitute the female players as opposed to accepting the forfeit. In hindsight, ISNA regrets that the female players felt they could not participate,” the statement read.

“It was never the team’s intention to exclude female participation … The team sincerely regrets if any team members or participants were hurt or felt discriminated against.”

Briscoe said she understands why the team objected, but she just wants to play soccer.

“I respect their culture and religion, and I don’t want to say anything bad about their religion just like I don’t want others to say anything bad about Catholics. But I have my right to play as much as their right to religious freedom,” she said.