set affinity for n-queen