@Override
    public int loop() {
        if (jobs == null) {
            jobs = new Tree(new Node[] { new Setup()});
            getContainer().submit(new Task() {
                @Override
                public void execute() {
                    paintBar = Util.getImage("paint_bar.png", "http://puu.sh/17VqH.png", "png");
                }
            });
        }

        final Node job = jobs.state();
        if (job != null) {
            jobs.set(job);
            getContainer().submit(job);
            job.join();
            return Random.nextInt(50, 100);
        }
        return Random.nextInt(100, 250);
    }