Solve NQueens