Added shuffleArray function