Hershey tuns to M&A amid core challenges