Completed the shuffle method