Make shuffle sides main code easier to understand.