One other note: there's a better way to calculate the highest number in an array:
Code:
int x, high = 0;

for(x = 0; x < max; x ++) {
    if(array[x] > array[high]) high = x;
}

// now high is the highest element