Update tag shuffle function