private int[] runFinder(int x, int y, PixImage image){
    short initialRed = image.getRed(x,y);
    short initialGreen = image.getGreen(x,y);
    short initialBlue = image.getBlue(x,y);
    int runLength = 0;
    short red = initialRed;
    short green = initialGreen;
    short blue = initialBlue;
    do{
      runLength++;
      x++;
      if((x > image.getWidth()-1)){
        if((y == getHeight()-1)){
          y++; //This Allows the returned Y value to be out of bounds, ending the while loop in the rle constructor
          break;
        }
        else{
          y++;
          x = 0;
        }
      }
      red = image.getRed(x,y);
      green = image.getGreen(x,y);
      blue = image.getBlue(x,y);
    }while ((initialRed == red) && (initialBlue == blue) && (initialGreen == green));
    return new int[] {runLength,initialRed,initialGreen,initialBlue,x,y};
  }