Shuffle function updated
new shuffle function