Uses a hill climbing algorithm to calculate the N-Queens problem.