public void render(Graphics graphics) {
        synchronized (objects) {
            objects.removeAll(deadObjects);
            Location cameraLocation = descent.getLevelPanel().getCamera().getLocation();
            for (LevelObject object : objects) {
                if (!(object instanceof Player)) {
                    Location objectLocation = object.getLocation();
                    if (objectLocation.getX() >= cameraLocation.getX() - 32 && objectLocation.getY() >= cameraLocation.getY() - 32 && objectLocation.distanceSquared(cameraLocation) <= 640000)
                        object.render(graphics);
                }
            }
            descent.getPlayer().render(graphics);
        }
    }