La matrice deve essere 3 x 3, non 2 x 2

char tris[3][3];