public void createBullet(boolean friendly, long birth, long life, float origin[], float offset[], int pattern[]) {
    for(int i = 0; i < bullets.length; i++) {
      // Try for safety!
      try {
        // Check if the bullet is living...
        if(bullets[i].living == false) {
          // And if it's not, then that means we can place a new bullet here, because it wasn't being used anyway.
          bullets[i] = new Bullet(friendly,birth,life,origin,offset,pattern);
          // And then lets break out of this loop because we no longer need to look through the array.
          break;
        }
      }
      // However there's this problem of if no bullets existed! Or the specific one we were checking didn't exist at all.
      catch(NullPointerException e) {
        // In that case, just make a new bullet in it's place!
        bullets[i] = new Bullet(friendly,birth,life,origin,offset,pattern);
        // And then break out of the loop because we don't want to keep making new bullets in the array.
        break;
      }
    }
  }