add board attribute to pieces