added testing and shuffling to script