options.setVisualization(gen % 5 == 0 || bestResult > 4000);
options.setMaxFPS(true);
Agent a = (Agent) es.getBests()[0];
a.setName(((Agent)initial).getName() + gen);
RegisterableAgent.registerAgent(a);
double result = task.evaluate(a)[0];
options.setVisualization(false);
options.setMaxFPS(true);
Easy.save (es.getBests()[0], "evolved.xml");
if (result > 4000) {
initial = es.getBests()[0];