public int checkrow9(int x)
{
int j = 1;
string a = "0";
for (int k = 1; k <= 9; k++)
{
for (int i = 9; i >= 1; i--)
{
a = hang[i, j];
for (j = 1; j <= i; j++)
{
if (a == hang[i, j + 1])
{ x = -1; return x; break; }
else
{ return x; }
}
}
}
}