N Queen's problem (heuristic patching method)