Former Mayor of Muncie accepts plea agreement