To get a chest, you have to align four or more pieces of the same type in a row or column. Then it will add a chest to a random piece on the board. After that, just clear that chest piece by aligning three or more pieces of that type.