public void createEnemy(long birth, long life, int pattern[], float offset[], int weapon, int design) {
    for(int i = 0; i < enemies.length; i++) {
      try {
        if(enemies[i].living == false) {
          enemies[i] = new Enemy(birth,life,pattern,offset,weapon,design);
          break;
        }
      }
      catch(NullPointerException e) {
        enemies[i] = new Enemy(birth,life,pattern,offset,weapon,design);
        break;
      }
    }
  }