moved NetworkPlayer to its own class