if (agent == null) {
int pSel = frame.getSelection().getValue(
NQueensFrame.PROBLEM_SEL);
int sSel = frame.getSelection().getValue(
NQueensFrame.SEARCH_SEL);
ActionsFunction af;
if (pSel == 0)
af = NQueensFunctionFactory.getIActionsFunction();
else
af = NQueensFunctionFactory.getCActionsFunction();
Problem problem = new Problem(env.getBoard(), af,