Untested shuffle function