Physical exercise, I mean, being consistent in your daily walks with your dog will undoubtedly contribute to the prevention and reduction of the anxieties that your friend acquired during the moments of loneliness and boredom he spent at home. Playing with your friend is also vitally important as it will enhance your leadership position on the command scale as your dog needs a group leader to prevent and reduce future behavior problems or behavioral attitudes such as aggression and attempts of dominance.
This kind of games will be taught to you by your qualified canine instructor and not only but also will it substantially increase your bond/link with your eternal friend.
Always remember that your dog is permanently associating all the movements, attitudes and sounds you practice and have with him.