public void drawAnimationIfDying(Graphics graphics) {
        if (!craft.isAlive()) {
            if (this.fadeOutAmount <= 0.99) {
                this.fadeOutAmount += 0.005;
                explosions.add(new Explosion(craft.getX(), craft.getY()));
                graphics.setColor(new Color(0, 0, 0, this.fadeOutAmount));
            } else {
                this.bulletsInPlay.clear();
                this.explosions.clear();
                this.enemies.clear();
                this.lives -= 1;
                if (lives == 0) {
                    gameState = GameState.GAMEOVER;
                } else {
                    craft.reborn();
                    this.fadeOutAmount = 0.0f;
                }

                // cause a delay
                try {
                    Thread.sleep(500);
                } catch(InterruptedException e) {
                    e.printStackTrace();
                }
            }
            graphics.fillRect(0, 0, getWidth(), getHeight());
        }
    }