Exercise 2, Eight Queens with greedy search