fixed pawn promotion bug