Multi-agent Reinforcement Learning Embedded Game for the Optimization of Building Energy Control and Power System Planning