public void end(){
        if(GlobalController.aiRun&&ann!=null){
            System.out.println("This AI's score was "+xOffset);
            new CMDTester(ann.getNet());
        }
        if(GlobalController.evolving&&ann!=null){
            if(ann==null)
                System.out.println("ERROR 1");
            else if(ann.getNet()==null)
                System.out.println("ERROR 2");
            ann.getNet().setFitness(xOffset);
            reset();
            GlobalController.running=false;
        }else{
            System.out.println("Fitness: " + xOffset + " :: Level1State 297");
            GlobalController.running=false;
        }
    }