new n queens console code