A python solution to the n queens problem using breadth first search