A cooperative network game based on electro-magnetic forces