General heuristic for queens