why does the funcion isFree does not work.
It is suppose to check if a position in the array has an x or o.
the array is a char array and my code is quite long so i tried to shorten it.
thats not the issue that works fine and the position goes through the function fine.
but when it goes to the isFree function the while statement does not check properly. i added a cout to check that and it looks in the correct array but the condition in the while does not function.
I'm telling you, the for loop doesn't work. What is position[3][3]? It's not in the array, so it's going to be something you didn't expect. You'll get in trouble if you try to modify that.