revised eight queens and w1d5