si namek è una matrice 10 x 10
non ho riportato il codice restante perchè ero sicuro che fosse corretto

l'errore l'ho trovato

if(((xn>0)&&(xn<10))||((yn>0)&&(yn<10))){

if(((xn>=0)&&(xn<10))&&((yn>=0)&&(yn<10))){


grazie