Started writing imperative 8 queens puzzle solution