The move reimbursement is not considered wages.
You will need to report the sale of the home but should qualify for the exclusion of the gain since you owned and used the home for at least 2 of the 5 years before the sale (on the federal and MA return).
The maximum amount of gain from selling a principal residence that you can exclude is:
- $250,000 for a single, head of household, or married separate filer
- $500,000 for married joint filer