public void update() {
        //NOTE, X AND Y ARE NOT THE POSITIONS OF THESE ENTITIES
        //This is to check for movement requests from entities (to allow the player to move between levels)
        //TODO move this to a dedicated (maybe static?) class
        ArrayList<ArrayList<Entity>> entityarrays = new ArrayList<ArrayList<Entity>>(entities.values());
        for (int x = 0; x < entityarrays.size(); x++) {
            ArrayList<Entity> activeArray = entityarrays.get(x);
            for (int y = 0; y < activeArray.size(); y++) {
                Entity ent = activeArray.get(y);
                ArrayList<EffectPackage> effects = ent.getEffectPackages();
                for (int c = 0; c < effects.size(); c++) {
                    EffectPackage pack = effects.get(c);
                    if (pack.getEffect() == Effect.MOVE_UP) {
                        levelchange = true;
                        changeto = level - 1;
                    } else if (pack.getEffect() == Effect.MOVE_DOWN) {
                        levelchange = true;
                        changeto = level + 1;
                    }
                }
                ent.update();
            }
        }
        //Update actores
        actors = new ArrayList<Actor>(actorHashMap.values());

        for (int c = 0; c < actors.size(); c++) {
            Actor a = actors.get(c);
            a.update();
            Point pos = a.getPos();
            if (a.delete()) {
                actorHashMap.remove(genKey(pos.getX(), pos.getY()));
            }
        }
    }