added pawn promotion when reaching end of board