public void update() {
        if(!isRunning) return;
        for (Entity entity : entities) {
            entity.update(0);
        }

        if(null != actions ){
            synchronized (actions){
                Iterator i = actions.iterator();
                while (i.hasNext()){
                    ((LoopedActions)i.next()).execute();

                }
            }
        }
//        for(LoopedActions a : actions)
//            a.execute();
    }