Mass. man claims $500K Powerball prize day before it expired