Grid Modernization with AI: Improving Energy Distribution