Implemented shuffle in queue