fixed algorithm and team shuffler