Correct your code as highlighted below .Also please Learn to Debug code it will make life easier.
43 void fun3()
44 {
45 int digit;
46
47 if(token=='x')
48 {
49 cout<<n1<<" select your position: ";
50 cin>>digit;
51 cout<<endl;
52 }
53 if(token=='0')
54 {
55 cout<<n2<<" select your position: ";
56 cin>>digit;
57 cout<<endl;
58 }if(digit ==1)
59 {
60 row=0;
61 column=0;
62 }if(digit ==2)
63 {
.....
.....
132 for(int x=0;x<3;x++)
133 {
134 for(int y=0;y<3;y++)
135 {
136 if(position[x][y] != 'x' && position[x][y] != '0')
137 return false;
138 }
139 }
Too many if -else combinations present to verify other things.Checkout switch case it will improve readbilty of code