Shuffle logic in gravity code