Change the <= to < in the for loop
for (int n = 0; n < 15; n++ )
Or better:
for (int n = 0; n < sizeof(tile); n++ )