working version with random teams