srand ( time(NULL) );
int bad1 = rand() % 9 + 1;
int bad2 = rand() % 9 + 1;
int bad3 = rand() % 9 + 1;
int position = rand() % 9 + 1;
int table1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
table1[position] = position;
table2[bad1] = bad1;
table3[bad2] = bad2;
table4[bad3] = bad3;
table1[position] = "D";

table2[bad1] = 'D';
srand ( time(NULL) );
char *num;
int bad1 = rand() % 10;
int bad2 = rand() % 9 + 1;
int bad3 = rand() % 9 + 1;
int position = rand() % 9 + 1;
int table1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
table1[position] = position;
table2[bad1] = 'D';
table3[bad2] = bad2;
table4[bad3] = bad3;
srand ( time(NULL) );
char num = 'D';
int bad1 = rand() % 10;
int bad2 = rand() % 9 + 1;
int bad3 = rand() % 9 + 1;
int position = rand() % 9 + 1;
int table1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
table1[position] = position;
table2[bad1] = num;
table3[bad2] = bad2;
table4[bad3] = bad3;
srand ( time(NULL) );
char num = 'D';
int bad1 = rand() % 10;
int bad2 = rand() % 9 + 1;
int bad3 = rand() % 9 + 1;
int position = rand() % 9 + 1;
int table1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
int table4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
table1[position] = position;
table2[bad1] = num;
table3[bad2] = bad2;
table4[bad3] = bad3;