client server code for tictactoe