I am trying to solve n-queen problem in python by using a list of sets to store which rows, columns, and diagonals are occupied. But it says the set changed size during iteratio