I got stuck at how to set up the correct expession for While loop so that the player needs to keep clicking until they click in an empty square.
you want them to keep clicking untill they click a blank square, which is represented by ' ' in the matrix. so the loop should run while ' ' != gameBoard[ ][ ] , with the correct [ ] from the function call.
got it! thanks a lot.
Side note: you could also do
while <choice> == 'X' or <choice> == 'O':
However, != ' ' is simpler.
!= ' '