changes validPromotion check to use a regex in PieceType