reusable draw_piece function