Improved pawn promotion logic