private void updateEnemies() {
        for (int i = 0; i < enemyList.size(); i++) {
            enemyList.get(i).update();
            if (enemyList.get(i).isArrived() || enemyList.get(i).isDestroyed()) {
                if (enemyList.get(i).isDestroyed()) {
                    GameInstance.credits += enemyList.get(i).getValue();
                    GameFrame.creditsLabel.setText("Credits: " + GameInstance.credits);
                }
                if (enemyList.get(i).isArrived()) {
                    gameOver = true;
                }
                map.clearEnemy(enemyList.get(i));
                enemyList.remove(i);
                i--;
            }
        }
    }