changeteam with teams and names as parameters