Changing for ruby 1.8 - replacing array.sample with array.shuffle