(CNN) The victory was bittersweet for a school still reeling from a horrific shooting.

But for students at Marjory Stoneman Douglas High School in Parkland, Florida, it was another way to honor the 17 people killed in the massacre there: a state title.

The school's boys ice hockey team won the state title with a pair of victories on Sunday. The title was considered an upset because the team, which had lost all three of its round-robin games during the weekend, was the lowest-seeded team in the championship bracket.

Even in victory, thoughts of the students and staff killed in the February 14 massacre remained close to the team's mind.

"This wasn't for us. This was for the 17 victims," senior Matthew Horowitz told CNN affiliate WPLG . "No one was lacking energy in the locker room. We all came to play. We were all ready."

Read More