Mass. town finalizes ballot measure for casino