Fixed a pawn promotion bug