Started code for leaving a team