private void Box6_TextChanged(object sender, EventArgs e) { int[,] arr = mapTableToArray(); CCC = new CheckCorrectCell(arr); if (CCC.checkCorrectCell9x9(0, 5) && Box6.Text != "") { Box6.BackColor = Color.Red; } else Box6.BackColor = Color.White; congratulations9x9(); }