Modified shuffle algorithm to Fisher-Yates for better randomization.