add switchteam function