City of Green plans to buy, tear down motel with checkered past