public void updateEnemies(long time, Game game) {
    // Loop through all the available enemies
    for(int i = 0; i < enemies.length; i++) {
      // Try block for safety.
      try {
        // If the enemy is alive, then let's update it.
        if(enemies[i].living == true) { enemies[i].update(time,game); }
      }
      // If the enemy was never initialized, it'd throw a null pointer exception.
      catch(NullPointerException e) {
        break; // We won't check any more bullets after this one.
      }
    }
  }