generates solutions to the eightqueens problem