Detection of replay attack on smart grid with code signal and bargaining game | Synapse