added shuffling method to the array