Implementation of pawn promotion