Massachusetts police officer joins boy to play basketball