public void calculateVision() {
        if (!vision) {
            resetVision();
            calculateVisionEntity(player);
            for (Living l : live) {
                if (l instanceof TorchPickup) {
                    calculateVisionEntity(l);
                }
            }
        } else {
            for (int y = 0; y < height; y++) {
                for (int x = 0; x < width; x++) {
                    if (data[y][x] != null) {
                        data[y][x].setLight(frame, 4);
                        data[y][x].setSeen(true);
                    }
                }
            }
        }
    }