added print_piece function
merged test conflict