for(int i = 0; i < states.size(); ++i)
{
states_ids.put(states.get(i),i);
}
World w = new World();
w.setNumberOfActions(moves.size());
w.setNumberOfStates(states.size());
try
{
algo = algoClass.getConstructor(World.class).newInstance(w);
}
catch (Exception e)