The Server code for tic tac toe