public void drawParticles(Graphics graphics) {
        for (int particleIndex = 0; particleIndex < particleArray.length; particleIndex++) {
            if (particleArray[particleIndex] != null) {
                particleArray[particleIndex].draw(graphics);
            }
        }
    }