solution to the 8 queens problem - version 1