contestada

Where should the comma(s) be placed in the following sentence?
When we won [A] the state championship [B] the team captain [C] jumped for joy [D] and the fans
cheered