Multiplayer tic-tac-toe using sockets