X or O game with node and sockets, learning it