Game Theoretic Stable Microgrid Formation in the Electricity Grid