n queens on the projective grid