Network multiplayer architecture and programming (sample)