Disassemble a pile of tiles by removing matching pairs