sorting non-attacking moves