Castling and pawn promotion