Using game theoretic approaches to implement smart grids