Working n Queens. Need to optimize tho.