Change piece type to piece_type