made it able to shuffle the elements in an array.