help me with coding the problem of "eitht queens"not using recursion