Maplewood to purchase former church