Effects of AGN and Mergers on the Cores of Galaxy Groups