Working on queens backtracking algorithm