8 queens problem solution and visualization