Ciao webfrancy,

sbagli il ciclo for che dovrebbe essere così
codice:
for (i=0; i<8; i++) {