Tic-tac-toe game server using Erlang