Added Break to inner for loop of shuffle