Small sort_moves() deobfuscation