This is a solution to the NQueens Problem