Prevent contestants from joining other teams

I am assuming students are divided into predefined groups