Client code for tic tac toe